home *** CD-ROM | disk | FTP | other *** search
- regc4f( 5, %daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a )
- pshader("
-
- ps_1_1
-
- #include <cardef.h>
- #define DayColor c5
-
- #define Diffuse v0.a
- #define SpotDiffuse v0
-
- tex t0 ;texture
-
- mul r0.rgb, t0, Diffuse
-
- mul r0.rgb, r0, DayColor
- +mov r0.a, t0.a
- ; spot lights
- #if VS_SPOTLIGHTS
- mad r0.rgb, t0, SpotDiffuse, r0
- #endif
- ")
-
-